Skip to content

Studio map: one Ignore for a loose parent folder with only subfolder rows (#790) - #798

Merged
danielrispler merged 1 commit into
mainfrom
issue-790-studio-map-one-ignore
Nov 28, 2026
Merged

danielrispler merged 1 commit into
mainfrom
issue-790-studio-map-one-ignore

Conversation

@danielrispler

Copy link
Copy Markdown
Owner

Closes #790

What changed

On the map scan screen, a loose folder with no files of its own that holds two or more loose rows now gets a parent row above them, indented, at every level. It has Ignore alone (no Give to or Add), muted with the usual reason when the folder holds a part's files. A folder with a single child row gets none. The parent's count is the rows right below it (.claude/ over skills/ and agents/ says "2 folders").

  • ui/map-model.ts: looseGroups returns parent and depth; ui/map-scan.ts draws parent rows; ui/style.css indents by --depth.
  • server/src/map_scan.rs: ignore_folder drops the ignored patterns inside the folder being ignored, so Unignore of the parent brings every subfolder back. The wire shape is unchanged.
  • docs/studio/behaviour/map.md ("Ignore a loose folder"); snap fixture mapScanParent (parent Ignore, muted parent, focus on Unignore).

Tests

New rows in the looseGroups table test, plus a depth check. The server's edit table cannot observe ignored (Seen shows only ticked candidates), so the drop has its own small test, ignoring_a_parent_folder_drops_the_patterns_inside_it. No tests removed or merged. npm run check passes.

Correctness pass

A fresh reviewer found nothing blocking. Two notes:

  • A ticked copy-candidate inside the ignored parent (such as a/vendor/) is dropped with the rest and is not re-ticked on Unignore. This follows the brief ("any ignored entries inside it are dropped").
  • A folder that is both a row and the parent of another row stays flat (cosmetic; its Ignore already covers the deeper rows).

Outside review

skipped: no risk match

Notes

$modern-web-guidance was not run before the UI code. $web-design-guidelines was run on the result with no findings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CVqACd5v8kQPDauf9TyDYr

@danielrispler
danielrispler merged commit d844801 into main Nov 28, 2026
4 checks passed
@danielrispler
danielrispler deleted the issue-790-studio-map-one-ignore branch November 28, 2026 11:55
@danielrispler danielrispler mentioned this pull request Nov 28, 2026
18 of 21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Studio map: one Ignore for a loose parent folder with only subfolder rows

1 participant